package com.kuang.demo1;

public class Proxy implements Rent{
    private Host host;
    public Proxy(){}
    public Proxy(Host host) {
      this.host=host;

    }

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        fare();

    }
    public void seeHouse(){
        System.out.println("带房客看房");
    }
    public void fare(){
        System.out.println("收中介费");
    }
}
